package com.noreply.demo.dto;

import lombok.Data;

/**
 * @author noreply
 * @description
 * @datetime 2021/6/23 17:19
 */
@Data
public class Resp {
    private int code;
    private String message;
    private Object data;

    public Resp() {
    }

    public Resp(Object data) {
        this.code = 0;
        this.message = "OK";
        this.data = data;
    }

    public Resp(int code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
}
